package test;

import java.util.ArrayList;
import java.util.List;

public class User
{
	public User()
	{
		friends.add("张三");
		friends.add("李四");
		friends.add("王五");
	}

	private String name;
	private int age;
	private double money;
	private List<String> friends = new ArrayList<String>();

	public User(String name)
	{
		this.name = name;
		friends.add("张三");
		friends.add("李四");
		friends.add("王五");
	}
	
	public String getName()
	{
		return name;
	}
	public void setName(String name)
	{
		this.name = name;
	}
	public List<String> getFriends()
	{
		return friends;
	}
	public void setFriends(List<String> friends)
	{
		this.friends = friends;
	}

	public int getAge()
	{
		return age;
	}

	public void setAge(int age)
	{
		this.age = age;
	}

	public double getMoney()
	{
		return money;
	}

	public void setMoney(double money)
	{
		this.money = money;
	}
}